package code.example.javassist.reflect;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.function.Consumer;

public class MethodsReflector {
    Method[] methods = null;
    List<MethodReflector> methodReflectorList = new ArrayList();
    public MethodsReflector(Method[] methods){
        this.methods = methods;
        for(int i=0;i<methods.length;i++){
            MethodReflector methodReflector = new MethodReflector(methods[i]);
            methodReflectorList.add(methodReflector);
        }
    }

    public Method getMethod(String methodName,Object [] parameter){
        Iterator<MethodReflector> iterator = methodReflectorList.iterator();
        while(iterator.hasNext()){
            MethodReflector methodReflector =   iterator.next();
           /* if ( methodReflector.isMatch(methodName) || parameter) {


            }*/
        }
        return null;
    }
}
